package ochart.serialization.json.oChart
{	
	import ochart.serialization.SerializationFormat;
	import ochart.serialization.json.JSON;
	import ochart.serialization.json.JSONSerializer;

	public class JSONSerializer extends ochart.serialization.json.JSONSerializer
	{
		override public function get format():String
		{
			return SerializationFormat.JSON;
		}
		
		public function JSONSerializer()
		{
			super();
		}
		
		override public function fromJSON(json:Object):Boolean
		{
			if(!super.fromJSON(json))
			{
				return false;
			}
			
			return true;
		}
		
		override public function toJSON():JSON
		{
			var json:JSON = super.toJSON();
			return json;
		}
	}
}